<template>
	<div>
		<button @click="ht">sesefe</button>
		<template v-if='texts.length>0' v-for="item in texts">
		<div v-html="item.form">
			
		</div>
		</template>

	</div>

</template>

<script>
	export default {
		name: 'ht',
		data() {
			return {
				texts: [],

			}
		},
		methods: {

			ht() {
				var vm = this
				this.$http.get('../../static/ht.json').then(function(data) {
					console.log(data.data.data)
					vm.texts = data.data.data;
					console.log(vm.texts.length)
				}, function(error) {
					vm.open4()
				})
			},
			open4() {
				this.$message.error('错了哦，这是一条错误消息');
			}
		},
	}
</script>

<style>

</style>